package club.xyes.zkh.ecommerce.commons.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Create by 郭文梁 2019/4/17 0017 11:35
 * WebsiteConfigurationProperties
 * 站点相关配置
 *
 * @author 郭文梁
 * @data 2019/4/17 0017
 */
@Data
@Component
@ConfigurationProperties(prefix = "site")
public class WebsiteConfigurationProperties {
    /**
     * 后台项目站点前缀 http://xxx/
     */
    private String backstageServerPrefix;
    /**
     * 前台项目站点地址
     */
    private String frontServerPrefix;
    /**
     * 静态服务器前台地址
     */
    private String staticServerPrefix;
    /**
     * 静态资源保存路径
     */
    private String staticFilePath;
    /**
     * 商铺Logo文件保存的地址
     */
    private String shopLogoPath = "/shop-logo/";
    /**
     * 商铺图片保存地址
     */
    private String shopImagePath = "/shop-image/";
    /**
     * 商品封面文件保存路径
     */
    private String commodityFrontCoverPath = "/commodity-front-cover/";
    /**
     * 商品图片文件保存路径
     */
    private String commodityImagePath = "/commodity-image/";
    /**
     * 会员卡图片保存地址
     */
    private String shopMembershipImagePath = "/shop-membership-image/";
    /**
     * 优惠券图片保存路径
     */
    private String couponImagePath = "/coupon-image/";
    /**
     * 商家促销图片保存路径
     */
    private String shopPromotionImagePath = "/shop-promotion/";
}
